package com.actor.networking;

import com.actor.networking.authorization.AuthorizationProvider;
import com.actor.networking.authorization.NoAuthorizationProvider;

/**
 * @author Dmitry
 */
public class NetworkContext {
    private Serializer serializer;
    private AuthorizationProvider authorizationProvider;

    public NetworkContext() {
        authorizationProvider = new NoAuthorizationProvider();
    }

    public Serializer getSerializer() {
        return serializer;
    }

    public void setSerializer(Serializer serializer) {
        this.serializer = serializer;
    }

    public AuthorizationProvider getAuthorizationProvider() {
        return authorizationProvider;
    }

    public void setAuthorizationProvider(AuthorizationProvider authorizationProvider) {
        this.authorizationProvider = authorizationProvider;
    }

}
